package com.lsq.wuyuge.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author 一声闷雷
 * @since 2025-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("article")
//@ApiModel(value="Article对象", description="文章表")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    //@ApiModelProperty(value = "文章ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    //@ApiModelProperty(value = "作者ID")
    private Long userId;

    //@ApiModelProperty(value = "文章标题")
    private String title;

    //@ApiModelProperty(value = "文章摘要")
    private String summary;

   // @ApiModelProperty(value = "文章内容")
    private String content;

    //@ApiModelProperty(value = "封面图URL")
    private String coverImage;


    //数据库默认值

    //@ApiModelProperty(value = "阅读数")
    private Integer viewCount;

    //@ApiModelProperty(value = "点赞数")
    private Integer likeCount;

    //@ApiModelProperty(value = "评论数")
    private Integer commentCount;

    //@ApiModelProperty(value = "状态：0-草稿，1-已发布")
    private Integer status;

    //@ApiModelProperty(value = "是否置顶：0-否，1-是")
    private Integer isTop;

    //@ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    //@ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    //@ApiModelProperty(value = "是否删除：0-未删除，1-已删除")
    private Integer deleted;


}
